package com.chen.nongansampling.activity;

import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.chen.nongansampling.R;
import com.chen.nongansampling.bean.getOperatingByPkId;
import com.chen.nongansampling.fragment.getOperatingByPkIdFragment;

import java.util.ArrayList;

public class KongbaiActivity extends AppCompatActivity {
    private ArrayList<getOperatingByPkId> lista;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.kongbai);
    //   Intent intent = getIntent();
    //   String pkid=intent.getStringExtra("str");

    //   System.out.println("传到新页面"+pkid);
    //   System.out.println(lista);
    //   getOperatingByPkIdFragment getOperatingByPkIdFragment = new getOperatingByPkIdFragment();
    //   getOperatingByPkIdFragment.zhi(pkid);
    //   intent.setClass(KongbaiActivity.this,OperatorDetailActivity.class);
    //   Bundle bundle = new Bundle();
    //   bundle.putSerializable("test", lista);
    //   intent.putExtras(bundle);
    //   intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

    //   startActivity(intent);
        finish();
        Intent intent = getIntent();
        String pkid=intent.getStringExtra("str");
        getOperatingByPkIdFragment getOperatingByPkIdFragment = new getOperatingByPkIdFragment();
        getOperatingByPkIdFragment.zhi(pkid);
    }



}
